package com.hope.saas.guice;

import com.google.inject.Inject;
import com.hope.saas.guice.service.AccountService;
import com.hope.saas.guice.service.CarService;

import java.text.MessageFormat;

/**
 * 注入测试
 */
public class GuiceUserService {
    @Inject
    private AccountService accountService;
    @Inject
    private CarService carService;

    @Override
    public String toString() {
        return MessageFormat.format("{0} - {1}", accountService.getName(), carService.getCar());
    }
}